package day09;

import java.lang.Thread.State;

public class ThreadInfo {

	public static void main(String[] args) {
		Thread main=Thread.currentThread();
		
		long id=main.getId();
		System.out.println("id:"+id);
		
		String name = main.getName();
		System.out.println("name:"+name);
		
		int priority = main.getPriority();
		System.out.println("priority:"+priority);
		
		Thread.State state = main.getState();
		System.out.println("state:"+state);
		
		boolean isAlive=main.isAlive();
		System.out.println("isAlive:"+isAlive);
		
		boolean daemon = main.isDaemon();
		System.out.println("daemon:"+daemon);
		
		boolean interrupted = main.isInterrupted();
		System.out.println("interrupted:"+interrupted);
		
		
		
	}

}
